package com.tool.imp;

import java.util.ArrayList;
import java.util.List;

/**
 * 导入操作基类消息Bean
 * 
 * @author Evan.Hu
 * 
 */
public class MessageBean {
	protected static final String ERR_MSG_Excel2VO = "[页签:${0}][行:${1}][列:${2}]数据准备时出现错误。错误日志[${3}]";
	protected static final String ERR_MSG_SetAndSave = "[页签:${0}]执行过程中出现错误。错误日志[${1}]";
	protected static final String SUC_MSG_Finish = "导入[${0}]，成功保存单据数[${1}]，处理失败单据数[${2}],解析耗时${3}ms,构造保存单据耗时${4}ms.";

	/** Excel数据校验错误 */
	private String parseErr = null;
	/** 生成单据中间错误 */
	private String processErr = null;
	/** 解析耗时 */
	private long parseCost = 0;
	/** 保存耗时 */
	private long saveBillCost = 0;

	/** 解析通过 */
	private boolean isCheckPass = true;
	/** 是否忽略错误 */
	private boolean isIgnoreErr = false;

	private List<String> sucList = new ArrayList<String>();
	private List<String> parseErrList = new ArrayList<String>();
	private List<String> errList = new ArrayList<String>();

	public String getParseErr() {
		return parseErr;
	}

	public String getProcessErr() {
		return processErr;
	}

	public long getParseCost() {
		return parseCost;
	}

	public long getSaveBillCost() {
		return saveBillCost;
	}

	public void setParseErr(String parseErr) {
		this.parseErr = parseErr;
	}

	public void setProcessErr(String processErr) {
		this.processErr = processErr;
	}

	public void setParseCost(long parseCost) {
		this.parseCost = parseCost;
	}

	public void setSaveBillCost(long saveBillCost) {
		this.saveBillCost = saveBillCost;
	}

	public boolean isCheckPass() {
		return isCheckPass;
	}

	public boolean isIgnoreErr() {
		return isIgnoreErr;
	}

	public void setCheckPass(boolean isCheckPass) {
		this.isCheckPass = isCheckPass;
	}

	public void setIgnoreErr(boolean isIgnoreErr) {
		this.isIgnoreErr = isIgnoreErr;
	}

	public List<String> getSucList() {
		return sucList;
	}

	public void setSucList(List<String> sucList) {
		this.sucList = sucList;
	}

	public List<String> getErrList() {
		return errList;
	}

	public void setErrList(List<String> errList) {
		this.errList = errList;
	}

	public List<String> getParseErrList() {
		return parseErrList;
	}

	public void setParseErrList(List<String> parseErrList) {
		this.parseErrList = parseErrList;
	}
}
